<div class="row tile">
    <div class="col-md-12 col-md-auto">
        <div class="ibox float-e-margins">
            <h3 class="ibox-title"></h3>
            <div class="ibox-content">
                &lt;form class="form-horizontal"&gt;
                    <input type="hidden">
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-clientid"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-remark"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-host"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-scheme"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            &lt;select id="scheme_select" class="form-control" name="scheme"&gt;
                                &lt;option {{if eq "all" .h.Scheme}}selected{{end}} value="all" langtag="word-all"&gt;&lt;/option&gt;
                                &lt;option {{if eq "http" .h.Scheme}}selected{{end}} value="http" langtag="word-http"&gt;&lt;/option&gt;
                                &lt;option {{if eq "https" .h.Scheme}}selected{{end}} value="https" langtag="word-https"&gt;&lt;/option&gt;
                            &lt;/select&gt;
                        </div>
                    </div>
                {{if eq false .https_just_proxy}}
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-httpscert"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-httpskey"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                {{end}}
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-urlroute"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                {{if eq true .allow_local_proxy}}
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-proxytolocal"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            &lt;select class="form-control" name="local_proxy"&gt;
                                &lt;option {{if eq false .h.Target.LocalProxy}}selected{{end}} value="0" langtag="word-no"&gt;&lt;/option&gt;
                                &lt;option {{if eq true .h.Target.LocalProxy}}selected{{end}} value="1" langtag="word-yes"&gt;&lt;/option&gt;
                            &lt;/select&gt;
                        </div>
                    </div>
                {{end}}
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-target"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                        &lt;textarea class="form-control" rows="4" type="text" name="target" placeholder="" langtag="info-suchasiplist"&gt;{{.h.Target.TargetStr}}&lt;/textarea&gt;
                            <span class="help-block m-b-none"></span>

                        </div>
                    </div>
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-requestheader"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                        &lt;textarea class="form-control" rows="4" type="text" name="header" placeholder="Cache-Control: no-cache"&gt;{{.h.HeaderChange}}&lt;/textarea&gt;
                            <span class="help-block m-b-none"></span>
                        </div>

                    </div>
                    <div class="form-group">
                        &lt;label class="control-label font-bold" langtag="word-requesthost"&gt;&lt;/label&gt;
                        <div class="col-sm-10">
                            <input class="form-control" type="text">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            &lt;button class="btn btn-success" type="button" onclick="submitform('edit', '{{.web_base_url}}/index/edithost', $('form').serializeArray())"&gt;
                                <i class="fa fa-fw fa-lg fa-save"></i> <span></span>
                            &lt;/button&gt;
                        </div>
                    </div>
                &lt;/form&gt;
            </div>
        </div>
    </div>
</div>

&lt;script&gt;
    $(function () {
        $("#scheme_select").on("change", function () {
            if ($("#scheme_select").val() == "all" || $("#scheme_select").val() == "https") {
                $("#cert_file").css("display", "block")
                $("#key_file").css("display", "block")
            } else {
                $("#cert_file").css("display", "none")
                $("#key_file").css("display", "none")
            }
        })
    })

&lt;/script&gt;